using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace WPRotator
{

    /// <summary>
    /// Summary description for FrmMain
    /// </summary>
    public partial class FrmMain : Form
    {
        private OpenFileDialog ofdAddFiles;
        private IContainer components;
        private CheckedListBox listboxFiles;
        private Button btnDel;
        private CheckBox chkRandom;
        private Button btnChange;
        private Button btnOpen;
        private Button btnAbout;
        private NotifyIcon notifyIcon;
        private ContextMenu notifyIconContextMenu;
        private MenuItem notifyIconContextMenu1;
        private MenuItem notifyIconContextMenu2;
        private MenuItem notifyIconContextMenu3;
        private RadioButton rbt1min;
        private RadioButton rbt5min;
        private RadioButton rbt15min;
        private RadioButton rbt1hr;
        private RadioButton rbt2hr;
        private RadioButton rbt12hr;
        private RadioButton rbt1day;
        private GroupBox gbxIntervals;
        private Timer timerRotate;

        #region Windows Form Designer generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
            this.btnChange = new System.Windows.Forms.Button();
            this.ofdAddFiles = new System.Windows.Forms.OpenFileDialog();
            this.btnOpen = new System.Windows.Forms.Button();
            this.listboxFiles = new System.Windows.Forms.CheckedListBox();
            this.btnDel = new System.Windows.Forms.Button();
            this.timerRotate = new System.Windows.Forms.Timer(this.components);
            this.chkRandom = new System.Windows.Forms.CheckBox();
            this.btnAbout = new System.Windows.Forms.Button();
            this.notifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
            this.notifyIconContextMenu = new System.Windows.Forms.ContextMenu();
            this.notifyIconContextMenu1 = new System.Windows.Forms.MenuItem();
            this.notifyIconContextMenu2 = new System.Windows.Forms.MenuItem();
            this.notifyIconContextMenu3 = new System.Windows.Forms.MenuItem();
            this.rbt1min = new System.Windows.Forms.RadioButton();
            this.rbt5min = new System.Windows.Forms.RadioButton();
            this.rbt15min = new System.Windows.Forms.RadioButton();
            this.rbt1hr = new System.Windows.Forms.RadioButton();
            this.rbt2hr = new System.Windows.Forms.RadioButton();
            this.rbt12hr = new System.Windows.Forms.RadioButton();
            this.rbt1day = new System.Windows.Forms.RadioButton();
            this.gbxIntervals = new System.Windows.Forms.GroupBox();
            this.gbxIntervals.SuspendLayout();
            this.SuspendLayout();
            // 
            // btnChange
            // 
            this.btnChange.Location = new System.Drawing.Point(164, 8);
            this.btnChange.Name = "btnChange";
            this.btnChange.Size = new System.Drawing.Size(150, 24);
            this.btnChange.TabIndex = 0;
            this.btnChange.Text = "&Change background now";
            this.btnChange.Click += new System.EventHandler(this.EventChangeImage);
            // 
            // openFileDialog1
            // 
            this.ofdAddFiles.Multiselect = true;
            // 
            // btnOpen
            // 
            this.btnOpen.Location = new System.Drawing.Point(8, 8);
            this.btnOpen.Name = "btnOpen";
            this.btnOpen.Size = new System.Drawing.Size(150, 24);
            this.btnOpen.TabIndex = 2;
            this.btnOpen.Text = "&Add images to the list";
            this.btnOpen.Click += new System.EventHandler(this.EventOpenFilesDialog);
            // 
            // mycheckedListBox
            // 
            this.listboxFiles.AllowDrop = true;
            this.listboxFiles.ColumnWidth = 300;
            this.listboxFiles.HorizontalScrollbar = true;
            this.listboxFiles.Location = new System.Drawing.Point(8, 48);
            this.listboxFiles.Name = "mycheckedListBox";
            this.listboxFiles.Size = new System.Drawing.Size(462, 229);
            this.listboxFiles.Sorted = false;
            this.listboxFiles.TabIndex = 3;
            this.listboxFiles.DragDrop += new System.Windows.Forms.DragEventHandler(this.EventDragDropToList);
            this.listboxFiles.DragEnter += new System.Windows.Forms.DragEventHandler(this.EventDragEnterToList);
            // 
            // btnDel
            // 
            this.btnDel.Location = new System.Drawing.Point(320, 8);
            this.btnDel.Name = "btnDel";
            this.btnDel.Size = new System.Drawing.Size(150, 24);
            this.btnDel.TabIndex = 4;
            this.btnDel.Text = "&Remove selected image";
            this.btnDel.Click += new System.EventHandler(this.EventRemoveFileFromList);
            // 
            // timer1
            // 
            this.timerRotate.Enabled = true;
            this.timerRotate.Interval = 5000;
            this.timerRotate.Tick += new System.EventHandler(this.EventChangeImage);
            // 
            // checkBox1
            // 
            this.chkRandom.Location = new System.Drawing.Point(476, 239);
            this.chkRandom.Name = "checkBox1";
            this.chkRandom.Size = new System.Drawing.Size(112, 43);
            this.chkRandom.TabIndex = 6;
            this.chkRandom.Text = "Random Order (&Shuffle Mode)";
            this.chkRandom.CheckedChanged += new EventHandler(EventRandomCheckedChange);
            // 
            // btnAbout
            // 
            this.btnAbout.Location = new System.Drawing.Point(529, 8);
            this.btnAbout.Name = "btnAbout";
            this.btnAbout.Size = new System.Drawing.Size(59, 24);
            this.btnAbout.TabIndex = 8;
            this.btnAbout.Text = "About &?";
            this.btnAbout.Click += new System.EventHandler(this.EventShowAboutDialog);
            // 
            // notifyIcon1
            // 
            this.notifyIcon.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
            this.notifyIcon.BalloonTipText = "Double-click to add or remove images to the list or modify the interval between c" +
                "hanges";
            this.notifyIcon.BalloonTipTitle = "Wallpaper Rotator";
            this.notifyIcon.ContextMenu = this.notifyIconContextMenu;
            this.notifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
            this.notifyIcon.Text = "Wallpaper Rotator";
            this.notifyIcon.Visible = true;
            this.notifyIcon.MouseMove += new System.Windows.Forms.MouseEventHandler(this.EventMouseMoveNotifyIcon);
            this.notifyIcon.DoubleClick += new System.EventHandler(this.EventRestoreWindow);
            // 
            // contextMenu1
            // 
            this.notifyIconContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.notifyIconContextMenu1,
            this.notifyIconContextMenu2,
            this.notifyIconContextMenu3});
            // 
            // menuItem1
            // 
            this.notifyIconContextMenu1.Index = 0;
            this.notifyIconContextMenu1.Text = "E&xit";
            this.notifyIconContextMenu1.Click += new System.EventHandler(this.EventClose);
            // 
            // menuItem2
            // 
            this.notifyIconContextMenu2.Index = 1;
            this.notifyIconContextMenu2.Text = "&Restore";
            this.notifyIconContextMenu2.Click += new System.EventHandler(this.EventRestoreWindow);
            // 
            // menuItem3
            // 
            this.notifyIconContextMenu3.Index = 2;
            this.notifyIconContextMenu3.Text = "&Change";
            this.notifyIconContextMenu3.Click += new System.EventHandler(this.EventChangeImage);
            // 
            // rbt1min
            // 
            this.rbt1min.AutoSize = true;
            this.rbt1min.Location = new System.Drawing.Point(6, 19);
            this.rbt1min.Name = "rbt1min";
            this.rbt1min.Size = new System.Drawing.Size(65, 17);
            this.rbt1min.TabIndex = 10;
            this.rbt1min.TabStop = true;
            this.rbt1min.Text = "1 minute";
            this.rbt1min.UseVisualStyleBackColor = true;
            this.rbt1min.CheckedChanged += new System.EventHandler(this.EventIntervalChanged);
            // 
            // rbt5min
            // 
            this.rbt5min.AutoSize = true;
            this.rbt5min.Location = new System.Drawing.Point(6, 43);
            this.rbt5min.Name = "rbt5min";
            this.rbt5min.Size = new System.Drawing.Size(70, 17);
            this.rbt5min.TabIndex = 11;
            this.rbt5min.TabStop = true;
            this.rbt5min.Text = "5 minutes";
            this.rbt5min.UseVisualStyleBackColor = true;
            this.rbt5min.CheckedChanged += new System.EventHandler(this.EventIntervalChanged);
            // 
            // rbt15min
            // 
            this.rbt15min.AutoSize = true;
            this.rbt15min.Location = new System.Drawing.Point(6, 67);
            this.rbt15min.Name = "rbt15min";
            this.rbt15min.Size = new System.Drawing.Size(76, 17);
            this.rbt15min.TabIndex = 12;
            this.rbt15min.TabStop = true;
            this.rbt15min.Text = "15 minutes";
            this.rbt15min.UseVisualStyleBackColor = true;
            this.rbt15min.CheckedChanged += new System.EventHandler(this.EventIntervalChanged);
            // 
            // rbt1hr
            // 
            this.rbt1hr.AutoSize = true;
            this.rbt1hr.Location = new System.Drawing.Point(6, 91);
            this.rbt1hr.Name = "rbt1hr";
            this.rbt1hr.Size = new System.Drawing.Size(55, 17);
            this.rbt1hr.TabIndex = 13;
            this.rbt1hr.TabStop = true;
            this.rbt1hr.Text = "1 hour";
            this.rbt1hr.UseVisualStyleBackColor = true;
            this.rbt1hr.CheckedChanged += new System.EventHandler(this.EventIntervalChanged);
            // 
            // rbt2hr
            // 
            this.rbt2hr.AutoSize = true;
            this.rbt2hr.Location = new System.Drawing.Point(6, 115);
            this.rbt2hr.Name = "rbt2hr";
            this.rbt2hr.Size = new System.Drawing.Size(60, 17);
            this.rbt2hr.TabIndex = 14;
            this.rbt2hr.TabStop = true;
            this.rbt2hr.Text = "2 hours";
            this.rbt2hr.UseVisualStyleBackColor = true;
            this.rbt2hr.CheckedChanged += new System.EventHandler(this.EventIntervalChanged);
            // 
            // rbt12hr
            // 
            this.rbt12hr.AutoSize = true;
            this.rbt12hr.Location = new System.Drawing.Point(6, 139);
            this.rbt12hr.Name = "rbt12hr";
            this.rbt12hr.Size = new System.Drawing.Size(66, 17);
            this.rbt12hr.TabIndex = 15;
            this.rbt12hr.TabStop = true;
            this.rbt12hr.Text = "12 hours";
            this.rbt12hr.UseVisualStyleBackColor = true;
            this.rbt12hr.CheckedChanged += new System.EventHandler(this.EventIntervalChanged);
            // 
            // rbt1day
            // 
            this.rbt1day.AutoSize = true;
            this.rbt1day.Location = new System.Drawing.Point(6, 163);
            this.rbt1day.Name = "rbt1day";
            this.rbt1day.Size = new System.Drawing.Size(51, 17);
            this.rbt1day.TabIndex = 16;
            this.rbt1day.TabStop = true;
            this.rbt1day.Text = "1 day";
            this.rbt1day.UseVisualStyleBackColor = true;
            this.rbt1day.CheckedChanged += new System.EventHandler(this.EventIntervalChanged);
            // 
            // groupBox1
            // 
            this.gbxIntervals.Controls.Add(this.rbt1day);
            this.gbxIntervals.Controls.Add(this.rbt1min);
            this.gbxIntervals.Controls.Add(this.rbt12hr);
            this.gbxIntervals.Controls.Add(this.rbt5min);
            this.gbxIntervals.Controls.Add(this.rbt2hr);
            this.gbxIntervals.Controls.Add(this.rbt15min);
            this.gbxIntervals.Controls.Add(this.rbt1hr);
            this.gbxIntervals.Location = new System.Drawing.Point(476, 48);
            this.gbxIntervals.Name = "groupBox1";
            this.gbxIntervals.Size = new System.Drawing.Size(112, 185);
            this.gbxIntervals.TabIndex = 17;
            this.gbxIntervals.TabStop = false;
            this.gbxIntervals.Text = "Change Every:";
            // 
            // FrmMain
            // 
            this.AllowDrop = true;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(600, 287);
            this.Controls.Add(this.btnAbout);
            this.Controls.Add(this.chkRandom);
            this.Controls.Add(this.btnDel);
            this.Controls.Add(this.listboxFiles);
            this.Controls.Add(this.btnOpen);
            this.Controls.Add(this.btnChange);
            this.Controls.Add(this.gbxIntervals);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.HelpButton = true;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.Name = "FrmMain";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Wallpaper Rotator";
            this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
            this.Load += new System.EventHandler(this.EventInitializeForm);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.EventFormClosing);
            this.Resize += new System.EventHandler(this.EventResizingFormWindow);
            this.gbxIntervals.ResumeLayout(false);
            this.gbxIntervals.PerformLayout();
            this.ResumeLayout(false);

        }
        #endregion

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.Run(new FrmMain());
        }
    }
}
